/*
 *  @author GeneZhao
 *  @date   2015-04-08 16:13:38
 *  @desc   
 */
Ext.define('kmsApp.view.oeminfo.OemInfo', {
    extend: 'Ext.grid.Panel',
    xtype: 'oeminfoGrid',
    requires: [
        
        'kmsApp.view.oeminfo.OemInfoController',
        'kmsApp.view.oeminfo.OemInfoForm'
    ],
    uses:[
        'kmsApp.store.oeminfo.OemInfo'
    ],
    controller: 'oeminfo',
    columnLines: true,

    initComponent: function() {
        var me = this;
        var store = Ext.create('kmsApp.store.oeminfo.OemInfo'); //创建store实例  
        this.store = store;
        me.columns = [{
            header: 'OEM',
            dataIndex: 'OEMNAME',
            width: '8%'
        }, {
            header: 'OID',
            dataIndex: 'OID',
            width: '30%'
        }, {
            header: 'IPv4',
            dataIndex: 'IP4',
            width: '20%'
        }, {
            header: 'ServiceID',
            dataIndex: 'SERVICE_ID',
            width: '20%'
        }, {
            header: '创建时间',
            dataIndex: 'CREATETIME',
            width: '20%'
        }];
        me.dockedItems = [{
            xtype: 'pagingtoolbar',
            dock: 'bottom',
            store: store,
            displayInfo: true,
            items: ['-', {
                text: '增加',
                glyph:0xf055,
                handler: 'addHandle'
            },{
                text:'编辑',
                glyph:0xf14b,
                handler:'editHandle'
            }]
        }];

        me.callParent();
    }
})
